package com.css.fxfzxczh.modules.disasterSituationDataManage.lifeline.entity;

import cn.afterturn.easypoi.excel.annotation.Excel;
import cn.afterturn.easypoi.excel.annotation.ExcelTarget;
import cn.afterturn.easypoi.handler.inter.IExcelDataModel;
import cn.afterturn.easypoi.handler.inter.IExcelModel;
import com.css.fxfzxczh.modules.util.BaseEntity;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.sql.Timestamp;
import java.util.Date;

/**
 * @Author: zhangSongRui
 * @CreateTime: 2023/01/30
 * @Description: 生命线实体
 */
@Data
@ExcelTarget("Lifeline")
public class Lifeline extends BaseEntity implements Serializable, IExcelDataModel, IExcelModel {
    //id
    private String xlrId;
    //地震事件管理id
    private String xsemId;
    //评估子区id
    private String xstmId;
    //省
    @Excel(name = "省", width = 25, orderNum = "2")
    private String province;
    //市
    @Excel(name = "市", width = 25, orderNum = "3")
    private String city;
    //县
    @Excel(name = "县", width = 25, orderNum = "4")
    private String district;
    //详细地址
    @Excel(name = "详细地址", width = 25, orderNum = "5")
    private String detailAddress;
    //抽样点名称
    @Excel(name = "抽样点名称", width = 25, orderNum = "6")
    private String sampleName;
    //抽样点id
    private String sampleId;
    //经度
    @Excel(name = "经度", width = 25, orderNum = "7")
    private Float longitude;
    //纬度
    @Excel(name = "纬度", width = 25, orderNum = "8")
    private Float latitude;
    //生命线类型;
    @Excel(name = "生命线类型", width = 25, orderNum = "9")
    private String lineType;

    private String lineType2;
    @Excel(name = "二级（当一级选择非生命线工程设备时，二级必填）",width = 25, orderNum = "9")
    private String lineType2Name;

    //破坏情况
    @Excel(name = "破坏情况", width = 25, orderNum = "10",replace={"审核通过_0","审核不通过_1","未审核_2"})
    private String damage;
    //推测烈度
    @Excel(name = "推测烈度", width = 25, orderNum = "11",replace={"审核通过_0","审核不通过_1","未审核_2"})
    private String intensity;
    //具体描述情况
    @Excel(name = "具体描述情况", width = 25, orderNum = "12")
    private String detailDesc;

    //附件(照片)
    private String enclosurePhoto;
    //附件(视频)
    private String enclosureVideo;
    //附件(音频)
    private String enclosureAudio;
    //附件(相册)
    private String enclosureAlbum;


    //调查员
    @Excel(name = "调查员", width = 25, orderNum = "13")
    private String investigator;
    //调查员id
    private String investigatorId;
    //调查时间
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
//    @Excel(name = "调查时间", width = 25, orderNum = "14")
    private Date investigationTime;

    //审核状态
    @Excel(name = "审核状态", width = 25, orderNum = "16",replace={"审核通过_0","审核不通过_1","未审核_2"})
    private String status;
    //审核意见
    @Excel(name = "审核意见", width = 25, orderNum = "17")
    private String suggestion;
    //生命线工程编号
//    @Excel(name = "生命线工程编号", width = 25, orderNum = "15")
    private String lifelineCode;
//    @Excel(name = "生命线工程名称", width = 25, orderNum = "15")
    private String lifelineName;

    private Integer rowNum;
    private String errorMsg;
    //是否提交0未提交,1已提交
    private String submit;


    private String geom;
}
